<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class VisaOrder extends Model
{
    protected $guarded = ['id'];

    public function country()
    {
    	return $this->belongsTo(VisaCountry::class,'country_code','code');
    }

    public function orderProcess()
    {
    	return $this->hasMany(VisaOrderProcess::class,'id','order_id');
    }

    public function process()
    {
    	return $this->belongsTo(VisaProcess::class);
    }
}
